// 入口文件
import React from 'react';
import ReactDOM from 'react-dom'
//import { Navigator,NoMatch,Home,Contact,Product,About} from './components'
//import { HashRouter as Router, Route,Switch} from 'react-router-dom'

import { connect } from 'react-redux'
import { increase,decrease} from '../actions'

import ProductDetails from '../components/ProductDetails'

const mapStateToProps = (state)=>{
    console.log(1);
    console.log(state);
    return {
        count: state.counter.count,
        //count1:state.counter.count1,
    }
}

export default connect(mapStateToProps,{increase,decrease})(ProductDetails);